package comi.example.xiong.bearfruit.bean;

import java.util.Date;

/**
 * 
 * @ClassName ShoppingCart
 * @Description TODO(数据库ShoppingCart_inf表的Java类)
 * @author 倪宗龙
 * @date 2018年12月8日 下午10:52:05
 * @version V1.0
 */
public class ShoppingCart {
	private Integer id;
	private User user;
	private Product product;
	private Integer quantity;
	private Date createTime;

	public ShoppingCart() {
		super();
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public Integer getQuantity() {
		return quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public String toString() {
		return "ShoppingCart [id=" + id + ", user=" + user + ", product=" + product + ", quantity=" + quantity + "]";
	}

}
